package homework_02.switch_demo;

/**
 * 根据数字判断周几
 */
public class Demo_03 {
    public static void main(String[] args) {
        int n=10;
        switch(n%7){
            case 0:
                System.out.println("周天");
                break;
            case 1:
                System.out.println("周一");
                break;
            case 2:
                System.out.println("周二");
                break;
            case 3:
                System.out.println("周三");
                break;
            case 4:
                System.out.println("周四");
                break;
            case 5:
                System.out.println("周五");
                break;
            case 6:
                System.out.println("周六");
                break;
            default:
                System.out.println("不正确");
                break;
        }

    }

}
